/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javamail.sdp.util;

/**
 *
 * @author sriram
 */
public enum eSdpParseState {
    INIT(0),
    NON_MEDIA(1), 
    MEDIA(2),
    COMPLETE(3),
    ERROR(4);
    // NOT USED anymore as per RFC4566 8.2.1. Media Types ("media")
    //CONTROL(6, "control"),
    //DATA(7, "data");
    
    private final int index;
    
    eSdpParseState(int index) {
        this.index = index;
    }
    
    public int toInt() {
        return index;
    }
}
